<?php

use yii\helpers\Url;

$tab_list = [
    'index' => [
        'title' => '客户列表',
        'url' => '/admin/recommend/index',
    ],
];
?>
<div class=" ui inverted segment">
  <div class=" ui inverted secondary pointing menu">
    <?php foreach ($tab_list as $key => $item): ?>
    <a class="item <?php if ($tab == $key): ?>active<?php endif;?> " href="<?=Url::to([$item['url']])?>">
      <?=$item['title']?> </a>
    <?php endforeach;?>
  </div>
</div>